<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<link type="text/css" rel="stylesheet" href="<%=basePath%>statics/js/plug/jbox/jBox.css"/>
<script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/plug/jbox/jBox.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/base/basemenu/base_menu_add.js"></script>
<div class="table_edit_div" style="display: block">
    <form id="addForm">
        <table style="width: 100%;" border="0">
   			<tr>
                <td class="attr" style="vertical-align:top;width: 70px;"><span>菜单名称：</span></td>
                <td style="vertical-align:top;width: 310px;min-width: 310px;"><input id="label" type="text" name="label" >
                	<img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
                </td>
                <td class="attr" style="vertical-align:top;width: 80px;"><span>操作权限：</span></td>
                <td style="vertical-align:top;">
                	<input type="text" id="authority" name="authority"/>
                	<input id="operateAuthorityIds" name="operateAuthorityIds" type="hidden"/>
                </td>
        	</tr>
            <tr>
                <td class="attr" style="vertical-align:top;"><span>所属父类：</span></td>
                <td style="vertical-align:top;">
                	<input type="text" id="menuParentName" name="menuParentName" value="无" readonly/>
                	<input type="hidden" id="parentId" name="parentId" value="0" />
                	<img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
                </td>
                <td rowspan="8" colspan="2" style="padding-left: 80px;">
	             	<div class="tree" style="width: 290px; overflow-y: auto; overflow-x: hidden; height: 360px;">
	             		<ul id="operateAuthorityTree" class="ztree"></ul>
	             	</div>
	             </td>
            </tr>
            <tr>
                <td class="attr" style="vertical-align:top;"><span>查看权限：</span></td>
                <td style="vertical-align:top;">
                	<input type="text" id="menuLookAuthority" name="menuLookAuthority" readonly/>
                	<input id="authorityId" name="authorityId" type="hidden"/>
                	<img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
                </td>
            </tr>
            <tr>
                <td class="attr" style="vertical-align:top;"><span>菜单样式：</span></td>
                <td style="vertical-align:top;"><input id="className" type="text" name="className" >
                <%-- <img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10"> --%>
                </td>
            </tr>
            <tr>
                <td class="attr" style="vertical-align:top;"><span>菜单链接：</span></td>
                <td style="vertical-align:top;"><input id="url" type="text" name="url" ></td>
            </tr>
            <tr>
                <td class="attr" style="vertical-align:top;"><span>菜单高度：</span></td>
                <td style="vertical-align:top;"><input id="controlHeight" type="text" name="controlHeight" >
                <img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
                </td>
            </tr>
            <tr>
                <td class="attr" style="vertical-align:top;"><span>加载方式：</span></td>
                <td style="vertical-align:top;">
                    <input name="loadMethod" type="radio" value="1" checked>覆盖
                    <input name="loadMethod" type="radio" value="2">叠加
                <img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
                </td>
            </tr>
            <tr>
                <td class="attr" style="vertical-align:top;"><span>菜单序号：</span></td>
                <td style="vertical-align:top;"><input id="sortFlag" type="text" name="sortFlag" >
                <img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
                </td>
            </tr>
            <tr style="height:100px;">
                <td class="attr" style="vertical-align:top;"><span>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span></td>
                <td height="100px" style="vertical-align:top;"><textarea id="remark" name="remark" cols="35" rows="5" style="width: 290px;height: 100px;"></textarea></td>
            </tr>
       </table>
       <div style="width: 100%;margin: 0 auto;">
       <ul style="width: 50%;margin: 0 auto;">
       	<li style="float: left;margin-right: 80px;">
	       <div style="text-align: center;margin-top: 20px;">
	            <input type="submit" value="添加" style="margin-top: 6px">
	       </div>
	    </li>
       	<li style="float: left;">
	       <div style="text-align: center;margin-top: 20px;">
	            <input type="button" value="重置" onclick="heavyLoad();" style="margin-top: 6px">
	       </div>
	    </li>
       </ul>
       </div>
    </form>
</div>